<?php
//application routing specifics
$s_appRequestVarName = fw_util_encrypt('appRequest', 5);
$s_subAppRequestVarName = fw_util_encrypt('subAppRequest', 4);
//root class where the views and navigation will be
$s_rootFile = 'index.php';
//array of application details
/*
 * structure:
 * $arr_applications = array(
 * 			array(	
 * 				'app_ident'=> '',
 * 				'app_display_name'=> '',
 * 				'controller_class'=> '',
 * 				'controller_class_alias'=> '',
 * 				'css_style_sheets'=> array(),
 * 				'js_files'=> array(),
 *				'js_load_function'=> 'function();'
 * 			)
 * 		)
 * )
 * 
 * 
 * note:
 * for sub applications use the same array structure but 
 * just sub the controller_class attribute with the method name
 * and sub the controller_class_alias with anything once again
 */
$arr_fw_js_files = array(
	'frontend/js/lib/LABjs-2.03/LAB.min.js', 
	'frontend/js/lib/jquery/jquery-1.7.js',
	'frontend/js/lib/jquery/jquery-ui-1.8.16.custom.min.js',
	'frontend/js/fw/application/static-vars.js',
	'frontend/js/fw/application/application.js',
);

$arr_fw_css_files = array(
	'frontend/design/style.css',
	'frontend/design/css/flick/jquery-ui-1.8.16.custom.css',
	'frontend/design/utilities/utilities-style.css'
);

$arr_applications = array(
	array(
		'app_ident'=> 'home',
		'app_display_name'=> 'Home',
		'controller_class'=> 'HomeController',
		'controller_class_alias'=> fw_util_encrypt('Home'),
		'css_style_sheets'=> $arr_fw_css_files,
		'js_files'=> fw_util_arrayPush($arr_fw_js_files, 'frontend/js/custom/custom-applications/home-application.js'),
		'js_load_function'=> 'loadAppFiles();',
		
		'sub_applications'=> array(
			array(
				'app_ident'=> 'subApp1',
				'app_display_name'=> 'Sub application 1',
				'controller_class'=> 'subApplicationOne',
				'controller_class_alias'=> fw_util_encrypt('subApplicationOne', 10),
			),
			
			array(
				'app_ident'=> 'subApp2',
				'app_display_name'=> 'Sub application 2',
				'controller_class'=> 'subApplicationTwo',
				'controller_class_alias'=>  fw_util_encrypt('subApplicationTwo', 15),
			),
			
			array(
				'app_ident'=> 'subApp3',
				'app_display_name'=> 'Sub application 3',
				'controller_class'=> 'subApplicationOne',
				'controller_class_alias'=> fw_util_encrypt('subApplicationThree', 10),
			),
	
			array(
				'app_ident'=> 'subApp4',
				'app_display_name'=> 'Sub application 4',
				'controller_class'=> 'subApplicationTwo',
				'controller_class_alias'=>  fw_util_encrypt('subApplicationFour', 15),
			)
		)
	),
	
	array(
		'app_ident'=> 'blog',
		'app_display_name'=> 'Blog',
		'controller_class'=> 'BlogController',
		'controller_class_alias'=> fw_util_encrypt('Blog'),
		'css_style_sheets'=> $arr_fw_css_files,
		'js_files'=> fw_util_arrayPush($arr_fw_js_files, 'frontend/js/custom/custom-applications/blog-application.js'),
		'js_load_function'=> 'loadAppFiles();'
	),	
	
	array(
		'app_ident'=> 'about',
		'app_display_name'=> 'About',
		'controller_class'=> 'AboutController',
		'controller_class_alias'=> fw_util_encrypt('About'),
		'css_style_sheets'=> $arr_fw_css_files,
		'js_files'=> fw_util_arrayPush($arr_fw_js_files, 'frontend/js/custom/custom-applications/about-application.js'),
		'js_load_function'=> 'loadAppFiles();'
	)
);

